import React, { Component } from 'react'

class Detail2 extends Component {
   // 动态路由
   // state传参
   // query传参
  render() {
    console.log(this.props.history.location.query.name); // query传参一刷新就没了
    return (
      <div>detail2</div>
    )
  }
}

export default Detail2